import request from '@/utils/request'

// 查询重点关注列表 lbj
export function listFocuson(query) {
  return request({
    url: '/teaching/focuson/list',
    method: 'get',
    params: query
  })
}

// 查询重点关注详细
export function getFocuson(id) {
  return request({
    url: '/teaching/focuson/' + id,
    method: 'get'
  })
}

// 新增重点关注
export function addFocuson(data) {
  return request({
    url: '/teaching/focuson',
    method: 'post',
    data: data
  })
}
// 学生中心添加关注
export function addFocusonRepeate(data) {
  return request({
    url: '/teaching/focuson/repeate',
    method: 'post',
    data: data
  })
}

// 修改重点关注
export function updateFocuson(data) {
  return request({
    url: '/teaching/focuson',
    method: 'put',
    data: data
  })
}

// 删除重点关注
export function delFocuson(id) {
  return request({
    url: '/teaching/focuson/' + id,
    method: 'delete'
  })
}

